'libtgfx - Threaded Graphics library for FreeBASIC
'Copyright (C) 2013  Ebben Feagan <sir@mud.owlbox.net>
'
'This library is free software; you can redistribute it and/or
'modify it under the terms of the GNU Lesser General Public
'License as published by the Free Software Foundation; either
'version 2.1 of the License, or (at your option) any later version.
'
'This library is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
'Lesser General Public License for more details.
'
'You should have received a copy of the GNU Lesser General Public
'License along with this library; if not, write to the Free Software
'Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

'image management
    namespace tgfx.image
        declare sub info(   byval src as any ptr, _
                            byref width_ as integer, _
                            byref height as integer, _
                            byref pitch as integer _
                        )

        declare function create(    byval x as integer, _
                                    byval y as integer, _
                                    byval defcolor as uinteger = &hffff00ff _
                                ) as any ptr

        declare sub destroy( byval i as any ptr )

        declare function get(   byval src as any ptr = 0, _
                                byval f as Coord, _
                                byval s as Coord, _
                                byval dest as any ptr = 0 _
                            ) as any ptr

        declare sub put(    byval src as any ptr, _
                            byval f as Coord, _
                            byval dest as any ptr = 0 _
                        )
    end namespace
